﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WuDada.Core.Post.Domain;

namespace WuDada.Core.Post.Persistence
{
    public interface IAnswerDetailDao
    {
        /// <summary>
        /// 新增AnswerDetail
        /// </summary>
        /// <param name="answerDetailVO">被新增的AnswerDetail</param>
        /// <returns>新增後的AnswerDetail</returns>
        AnswerDetailVO CreateAnswerDetail(AnswerDetailVO answerDetailVO);

        /// <summary>
        /// 取得AnswerDetail By AnswerDetailId
        /// </summary>
        /// <param name="answerDetailId">AnswerDetailId</param>
        /// <returns>AnswerDetail</returns>
        AnswerDetailVO GetAnswerDetailById(int answerDetailId);

        /// <summary>
        /// 刪除AnswerDetail
        /// </summary>
        /// <param name="answerDetailVO">被刪除的AnswerDetail</param>
        void DeleteAnswerDetail(AnswerDetailVO answerDetailVO);

        /// <summary>
        /// 更新AnswerDetail
        /// </summary>
        /// <param name="answerDetailVO">被更新的AnswerDetail</param>
        /// <returns>更新後的AnswerDetail</returns>
        AnswerDetailVO UpdateAnswerDetail(AnswerDetailVO answerDetailVO);

        /// <summary>
        /// 取得AnswerDetail清單
        /// </summary>
        /// <param name="conditions">搜尋條件</param>
        /// <returns>AnswerDetail清單</returns>
        IList<AnswerDetailVO> GetAnswerDetailList(IDictionary<string, string> conditions);

        /// <summary>
        /// 取得AnswerDetail數量
        /// </summary>
        /// <param name="conditions"></param>
        /// <returns></returns>
        int GetAnswerDetailCount(IDictionary<string, string> conditions);
    }
}
